/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    max-width: 500px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--primary-color);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-container input {
    flex: 1;
}

.captcha-container img {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.help-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    text-align: center;
}

.help-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-text a:hover {
    color: var(--accent-color);
}

/* 状态文本样式 */
.status-text {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
}

.status-text.success {
    color: var(--primary-color);
}

.status-text.error {
    color: #ff4444;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .captcha-container {
        flex-direction: column;
    }

    .captcha-container img {
        width: 100%;
        height: auto;
    }
}

/* 头像上传样式 */
.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

.avatar-upload img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 10px;
    border: 2px solid var(--primary-color);
}

.avatar-upload input[type="file"] {
    margin-bottom: 10px;
} 